#
# CREATE BASE IMAGE
#

FROM e7sky/alpine:3.7
MAINTAINER joen kai168@126.com

# 增加用户等操作
RUN addgroup -g 1001 g_was \
      && adduser -D -s /sbin/nologin -G g_was -u 1001 was \
      && adduser -D -s /sbin/nologin -G g_was -u 1002 wasuser \
      && mkdir -p /was/soft /was/run /was/webapp \
      && chown -R was.g_was /was/soft \
      && chown -R was.g_was /was/run \
      && chown -R wasuser.g_was /was/webapp 